package com.cn.kehong.domain;

import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class ProductSaojiePeriod {
    private String id;

    private String peiId;

    private String factoryName;

    private String productCode;

    private String saojieStatus;

    private String status;

    private Date createTime;

    private Date updateTime;

    private String yaoGuanCode;

    private String gzGuanCode;

    private String jinliaoStartTime;

    private String startTime;

    private String endTime;

    private String asyncOut;

    private String hasOut;

    private String gzId;
    private String gzStartTime;
    private String gzEndTime;
    private String gzStatus;
    private String enterYaol;

    private String startCode;

    private int count;

    private List<ProductSaojieJob> productSaojieJobs;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "未开始", "1", "进行中", "2", "已完成");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getPeiId() {
        return peiId;
    }

    public void setPeiId(String peiId) {
        this.peiId = peiId == null ? null : peiId.trim();
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName == null ? null : factoryName.trim();
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode == null ? null : productCode.trim();
    }

    public String getSaojieStatusCn() {
        return STATUSMAP.get(getSaojieStatus());
    }
    public String getSaojieStatus() {
        return saojieStatus;
    }

    public void setSaojieStatus(String saojieStatus) {
        this.saojieStatus = saojieStatus == null ? null : saojieStatus.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getYaoGuanCode() {
        return yaoGuanCode;
    }

    public void setYaoGuanCode(String yaoGuanCode) {
        this.yaoGuanCode = yaoGuanCode == null ? null : yaoGuanCode.trim();
    }

    public String getGzGuanCode() {
        return gzGuanCode;
    }

    public void setGzGuanCode(String gzGuanCode) {
        this.gzGuanCode = gzGuanCode == null ? null : gzGuanCode.trim();
    }

    public String getJinliaoStartTime() {
        return jinliaoStartTime;
    }

    public void setJinliaoStartTime(String jinliaoStartTime) {
        this.jinliaoStartTime = jinliaoStartTime == null ? null : jinliaoStartTime.trim();
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime == null ? null : startTime.trim();
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime == null ? null : endTime.trim();
    }

    public String getAsyncOut() {
        return asyncOut;
    }

    public void setAsyncOut(String asyncOut) {
        this.asyncOut = asyncOut == null ? null : asyncOut.trim();
    }

    public List<ProductSaojieJob> getProductSaojieJobs() {
        return productSaojieJobs;
    }

    public void setProductSaojieJobs(List<ProductSaojieJob> productSaojieJobs) {
        this.productSaojieJobs = productSaojieJobs;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }


    public String getGzId() {
        return gzId;
    }

    public void setGzId(String gzId) {
        this.gzId = gzId;
    }

    public String getGzStartTime() {
        return gzStartTime;
    }

    public void setGzStartTime(String gzStartTime) {
        this.gzStartTime = gzStartTime;
    }

    public String getGzEndTime() {
        return gzEndTime;
    }

    public void setGzEndTime(String gzEndTime) {
        this.gzEndTime = gzEndTime;
    }

    public String getGzStatus() {
        return gzStatus;
    }

    public void setGzStatus(String gzStatus) {
        this.gzStatus = gzStatus;
    }

    public String getEnterYaol() {
        return enterYaol;
    }

    public void setEnterYaol(String enterYaol) {
        this.enterYaol = enterYaol;
    }

    public String getHasOut() {
        return hasOut;
    }

    public void setHasOut(String hasOut) {
        this.hasOut = hasOut;
    }

    public String getStartCode() {
        return startCode;
    }

    public void setStartCode(String startCode) {
        this.startCode = startCode;
    }
}